﻿CREATE TABLE [dbo].[L_Reimbursement_Assets] (
    [Id]           INT              IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [itemid]       INT              NULL,
    [GId]          UNIQUEIDENTIFIER CONSTRAINT [DF_L_Reimbursement_Assets_GId] DEFAULT (newid()) ROWGUIDCOL NULL,
    [CategoryId]   INT              NULL,
    [NameId]       INT              NULL,
    [Description]  NVARCHAR (500)   NULL,
    [CompanyId]    INT              NULL,
    [DepartmentId] INT              NULL,
    [UserName]     NVARCHAR (50)    NULL,
    [EName]        NVARCHAR (50)    NULL,
    [StateId]      INT              NULL,
    [Prices]       NUMERIC (18, 2)  NULL,
    [DJUserName]   NVARCHAR (50)    NULL,
    [DJDate]       DATETIME         NULL,
    [GGXH]         NVARCHAR (50)    NULL,
    [GZDate]       DATETIME         NULL,
    [IsApplyBF]    BIT              CONSTRAINT [DF_L_Reimbursement_Assets_IsApplyBF] DEFAULT ((0)) NULL,
    [Memo]         NVARCHAR (500)   NULL,
    [ApplyBFDate]  DATETIME         NULL,
    [Anumber]      NCHAR (50)       NULL,
    [LyDate]       DATETIME         NULL,
    [oldEName]     NVARCHAR (50)    CONSTRAINT [DF_L_Reimbursement_Assets_oldEName_1] DEFAULT ('') NULL,
    [oldUserName]  VARCHAR (30)     CONSTRAINT [DF_L_Reimbursement_Assets_oldUserName_1] DEFAULT ('') NULL,
    [typeid]       INT              NULL,
    CONSTRAINT [PK_L_Reimbursement_Assets] PRIMARY KEY CLUSTERED ([Id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'Id';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'GUID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'GId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'类别ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'CategoryId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'名称ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'NameId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'详细描述', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'Description';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'公司ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'CompanyId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'部门ID', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'DepartmentId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'使用人员帐号', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'UserName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'使用人员姓名', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'EName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'资产状态', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'StateId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'价值', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'Prices';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'登记人员', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'DJUserName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'登记时间', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'DJDate';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'规格型号', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'GGXH';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'购置日期', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'GZDate';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'是否申请报废', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'IsApplyBF';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'备注', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'Memo';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'申请报废日期', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'ApplyBFDate';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'数量', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'Anumber';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'领用日期', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'LyDate';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'上次使用人', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'oldEName';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'上次使用人编号', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'L_Reimbursement_Assets', @level2type = N'COLUMN', @level2name = N'oldUserName';

